/*
 * This implementation of FIFO Queue that will be used for 
 * the received message queue.
 * uturan 05/05/2011

*/
#ifndef QUEUE_H
#define QUEUE_H

#include "Common_Types.h"

typedef struct
{
    U32 currentSize;
    U32 availableSize;
    void** nodes;
}QUEUE_TYPE;

#ifdef __cplusplus
extern "C" {
	QUEUE_TYPE* initQueue(U32 n);
	void freeQueue(QUEUE_TYPE* q);
	STATUS insertNodeQueue(QUEUE_TYPE* q, void *node);
	void* popQueue(QUEUE_TYPE* q);
}
#endif



#endif
